//
//  CENetWorkManager+LowerSign.h
//  CEHttpNetwork
//
//  Created by lzy on 2019/7/26.
//  Copyright © 2019 lzy. All rights reserved.
//

#import "CENetWorkManager.h"

NS_ASSUME_NONNULL_BEGIN

@interface CENetWorkManager (LowerSign)

#pragma mark - get请求 (sign 是否需要签名)
+(NSURLSessionTask *_Nullable)lgetNetWorkingWithURl:(NSString*_Nullable)urlStr
                                            praDic:(NSDictionary *_Nullable)praDic
                                         headerDic:(NSDictionary *_Nullable)headerDic
                                              sign:(BOOL)sign
                                           success:(void(^_Nullable)(NSDictionary * _Nonnull dataDic))success
                                              fail:(void(^_Nullable)(NSString * _Nonnull failStr,BOOL isCanceled))fail;

+(NSURLSessionTask *_Nullable)lgetNetWorkingWithURl:(NSString *_Nullable)urlStr
                                            praDic:(NSDictionary *_Nullable)praDic
                                        JSONFormat:(BOOL)JSONFormat
                                           timeOut:(NSInteger)timeOut
                                         headerDic:(NSDictionary *_Nullable)headerDic
                                              time:(NSTimeInterval)time
                                              sign:(BOOL)sign
                                           success:(void(^_Nullable)(NSDictionary * _Nullable dataDic))success
                                              fail:(void(^_Nullable)(NSString * _Nullable failStr,BOOL isCanceled))fail
                                          progress:(void(^_Nullable)(long long progress))progress;

#pragma mark - post请求 (sign 是否需要签名)
+(NSURLSessionTask *_Nullable)lpostNetWorkingWithURl:(NSString*_Nullable)urlStr
                                             praDic:(NSDictionary *_Nullable)praDic
                                          headerDic:(NSDictionary *_Nullable)headerDic
                                               sign:(BOOL)sign
                                            success:(void(^)(NSDictionary * _Nullable dataDic))success
                                               fail:(void(^)(NSString * _Nullable failStr,BOOL isCanceled))fail;

//上传文件流
+(NSURLSessionTask *_Nullable)lpostNetWorkingWithURl:(NSString*_Nullable)urlStr
                                             praDic:(NSDictionary *_Nullable)praDic
                                          headerDic:(NSDictionary *_Nullable)headerDic
                                               time:(NSTimeInterval)time
                                              files:(NSArray *_Nullable)files
                                          fileNames:(NSArray *_Nullable)fileNames
                                               sign:(BOOL)sign
                                            success:(void(^_Nullable)(NSDictionary * _Nullable dataDic))success
                                               fail:(void(^_Nullable)(NSString * _Nullable failStr,BOOL isCanceled))fail;

+(NSURLSessionTask *_Nullable)lpostNetWorkingWithURl:(NSString*_Nullable)urlStr
                                             praDic:(NSDictionary *_Nullable)praDic
                                         JSONFormat:(BOOL)JSONFormat
                                            timeOut:(NSInteger)timeOut
                                          headerDic:(NSDictionary *_Nullable)headerDic
                                              time:(NSTimeInterval)time
                                              files:(NSArray *_Nullable)files
                                          fileNames:(NSArray *_Nullable)fileNames
                                               sign:(BOOL)sign
                                            success:(void(^_Nullable)(NSDictionary * _Nullable dataDic))success
                                               fail:(void(^_Nullable)(NSString * _Nullable failStr,BOOL isCanceled))fail
                                           progress:(void(^_Nullable)(long long progress))progress;

+(NSURLSessionTask *_Nullable)lpostNetWorkingWithURl:(NSString*)urlStr
                                              praDic:(NSDictionary *)praDic
                                          JSONFormat:(BOOL)JSONFormat
                                             timeOut:(NSInteger)timeOut
                                           headerDic:(NSDictionary *)headerDic
                                                time:(NSTimeInterval)time
                                               files:(NSArray *)files
                                           fileNames:(NSArray *)fileNames
                                               names:(NSArray *)names
                                                sign:(BOOL)sign
                                             success:(void(^)(NSDictionary *dataDic))success
                                                fail:(void(^)(NSString * failStr,BOOL isCanceled))fail
                                            progress:(void(^)(long long progress))progress;


@end

NS_ASSUME_NONNULL_END
